﻿using System.Data.Common;
using System.Threading.Tasks;

namespace Gaea
{
    public interface IGaeaConnectionFactory
    {

        //void SetGaeaPower(object gaeaPower);

        //Task<DbConnection> GetConnectionAsync(bool needOpen = true);

        Task<DbConnection> GetConnectionAsync(IGaeaPower gaeaPower, bool needOpen = true);

        //DbConnection GetConnection(bool needOpen = true);

        DbConnection GetConnection(IGaeaPower gaeaPower, bool needOpen = true);
    }
}
